package com.fessc.develop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fessc.develop.entity.dbvo.TCheckDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface TCheckDetailMapper extends BaseMapper<TCheckDetail> {

    void deletCheckDetailByDate(@Param("bankId") String bankId, @Param("checkDate") Date checkDate, @Param("checkType") String checkType);

    void updateCheckDetailByDate(@Param("effectiveStatus") String effectiveStatus, @Param("bankId") String bankId, @Param("checkDate") Date checkDate, @Param("checkType") String checkType);

    List<TCheckDetail> getPrePaymentResultByCheckDate(@Param("bankId") String bankId, @Param("checkDate") Date checkDate, @Param("checkType") String checkType);

    List<TCheckDetail> getPrePaymentRefundResultByCheckDate(@Param("bankId") String bankId, @Param("checkDate") Date checkDate, @Param("checkType") String checkType);

    List<TCheckDetail> getSettleResultByCheckDate(@Param("bankId") String bankId, @Param("checkDate") Date checkDate, @Param("checkType") String checkType);

}
